/**
 * DeepSeek系统 - 组件样式
 * 可复用UI组件的样式定义
 */

/* 标签与徽章 */
.deepseek-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--deepseek-border-radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--deepseek-gray-200);
    color: var(--deepseek-text-secondary);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.deepseek-tag-primary {
    background-color: rgba(58, 109, 240, 0.1);
    color: var(--deepseek-primary);
}

.deepseek-tag-success {
    background-color: rgba(42, 198, 112, 0.1);
    color: var(--deepseek-success);
}

.deepseek-tag-warning {
    background-color: rgba(255, 173, 73, 0.1);
    color: var(--deepseek-warning);
}

.deepseek-tag-danger {
    background-color: rgba(242, 100, 100, 0.1);
    color: var(--deepseek-danger);
}

.deepseek-tag-removable {
    padding-right: 0.375rem;
}

.deepseek-tag-removable .tag-remove {
    margin-left: 0.375rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.1);
    color: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.deepseek-tag-removable .tag-remove:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

/* 数据展示卡片 */
.deepseek-info-card {
    display: flex;
    padding: 1rem;
    background-color: white;
    border-radius: var(--deepseek-border-radius);
    border: 1px solid var(--deepseek-border);
    margin-bottom: 1rem;
}

.deepseek-info-card .info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--deepseek-border-radius);
    background-color: rgba(58, 109, 240, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--deepseek-primary);
    font-size: 1.25rem;
}

.deepseek-info-card .info-content {
    flex: 1;
}

.deepseek-info-card .info-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.deepseek-info-card .info-subtitle {
    font-size: 0.875rem;
    color: var(--deepseek-text-secondary);
}

.deepseek-info-card .info-actions {
    margin-left: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 空状态组件 */
.deepseek-empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: var(--deepseek-border-radius);
    margin-bottom: 1.5rem;
}

.deepseek-empty-state .empty-icon {
    font-size: 3rem;
    color: var(--deepseek-gray-400);
    margin-bottom: 1rem;
}

.deepseek-empty-state .empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.deepseek-empty-state .empty-description {
    color: var(--deepseek-text-secondary);
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* 加载状态组件 */
.deepseek-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.deepseek-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(58, 109, 240, 0.1);
    border-top-color: var(--deepseek-primary);
    border-radius: 50%;
    animation: deepseek-spinner 1s infinite linear;
    margin-bottom: 1rem;
}

@keyframes deepseek-spinner {
    to {
        transform: rotate(360deg);
    }
}

.deepseek-loading .loading-text {
    color: var(--deepseek-text-secondary);
}

/* 工具提示 */
.deepseek-tooltip {
    position: relative;
    display: inline-block;
}

.deepseek-tooltip .tooltip-content {
    position: absolute;
    z-index: 1070;
    visibility: hidden;
    width: max-content;
    max-width: 200px;
    background-color: #2d3748;
    color: white;
    text-align: center;
    padding: 0.5rem 0.75rem;
    border-radius: var(--deepseek-border-radius);
    font-size: 0.75rem;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    pointer-events: none;
}

.deepseek-tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

.deepseek-tooltip .tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #2d3748 transparent transparent transparent;
}

/* 步骤条 */
.deepseek-steps {
    display: flex;
    margin-bottom: 2rem;
}

.deepseek-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.deepseek-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: var(--deepseek-gray-300);
    z-index: 1;
}

.deepseek-step.active:not(:last-child)::after {
    background-color: var(--deepseek-primary);
}

.deepseek-step.completed:not(:last-child)::after {
    background-color: var(--deepseek-success);
}

.deepseek-step-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--deepseek-gray-300);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    position: relative;
    z-index: 2;
}

.deepseek-step.active .deepseek-step-icon {
    background-color: var(--deepseek-primary);
}

.deepseek-step.completed .deepseek-step-icon {
    background-color: var(--deepseek-success);
}

.deepseek-step-label {
    font-size: 0.875rem;
    color: var(--deepseek-text-secondary);
}

.deepseek-step.active .deepseek-step-label {
    color: var(--deepseek-primary);
    font-weight: 600;
}

.deepseek-step.completed .deepseek-step-label {
    color: var(--deepseek-success);
}

/* 文件上传组件 */
.deepseek-file-upload {
    border: 2px dashed var(--deepseek-gray-300);
    border-radius: var(--deepseek-border-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.deepseek-file-upload:hover,
.deepseek-file-upload.dragover {
    border-color: var(--deepseek-primary);
    background-color: rgba(58, 109, 240, 0.03);
}

.deepseek-file-upload .upload-icon {
    font-size: 2.5rem;
    color: var(--deepseek-gray-400);
    margin-bottom: 1rem;
}

.deepseek-file-upload .upload-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.deepseek-file-upload .upload-hint {
    color: var(--deepseek-text-secondary);
    margin-bottom: 1rem;
}

.deepseek-file-upload .upload-browse {
    color: var(--deepseek-primary);
    text-decoration: underline;
    cursor: pointer;
}

/* 文件上传项 */
.deepseek-upload-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: var(--deepseek-border-radius);
    background-color: white;
    border: 1px solid var(--deepseek-border);
    margin-bottom: 0.75rem;
}

.deepseek-upload-item .file-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--deepseek-border-radius);
    background-color: rgba(58, 109, 240, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--deepseek-primary);
}

.deepseek-upload-item .file-info {
    flex: 1;
}

.deepseek-upload-item .file-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deepseek-upload-item .file-size {
    font-size: 0.75rem;
    color: var(--deepseek-text-secondary);
}

.deepseek-upload-item .file-progress {
    height: 4px;
    background-color: var(--deepseek-gray-200);
    border-radius: 2px;
    margin-top: 0.25rem;
    overflow: hidden;
}

.deepseek-upload-item .file-progress-bar {
    height: 100%;
    background-color: var(--deepseek-primary);
    border-radius: 2px;
    transition: width 0.2s ease;
}

.deepseek-upload-item .file-actions {
    margin-left: 1rem;
}

.deepseek-upload-item .file-action-btn {
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deepseek-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.deepseek-upload-item .file-action-btn:hover {
    background-color: var(--deepseek-gray-200);
    color: var(--deepseek-text);
}

/* 暗色模式适配 */
.dark-mode .deepseek-info-card,
.dark-mode .deepseek-upload-item {
    background-color: var(--deepseek-card-bg);
    border-color: var(--deepseek-border);
}

.dark-mode .deepseek-empty-state {
    background-color: rgba(255, 255, 255, 0.02);
}

.dark-mode .deepseek-file-upload {
    border-color: var(--deepseek-gray-600);
}

.dark-mode .deepseek-file-upload:hover,
.dark-mode .deepseek-file-upload.dragover {
    border-color: var(--deepseek-primary);
    background-color: rgba(58, 109, 240, 0.1);
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .deepseek-steps {
        flex-direction: column;
    }
    
    .deepseek-step {
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        text-align: left;
    }
    
    .deepseek-step:not(:last-child)::after {
        top: auto;
        left: 15px;
        width: 2px;
        height: 100%;
        transform: translateY(15px);
    }
    
    .deepseek-step-icon {
        margin: 0 1rem 0 0;
    }
} 